<?php
namespace app\api\controller\v1;
use app\api\controller\Common;

class MemberShare extends Common{
	var $modelDb;
	public function _initialize(){
		parent::_initialize();
		$this->modelDb = model("MemberShare");
	}
	public function add(){
		$this->postData['userid'] = $this->uinfo['userid'];
        $id = $this->modelDb->save_datas($this->postData);
        if ($id === false) {
            return $this->app_error($this->modelDb->getError());
        }
    	return $this->app_success();
    }
}